From: Michael Heimpold Date: Sat, 5 Apr 2014 20:26:10 +0000 (+0000) Subject: php5: prepare pecl macros to distinguish between normal and zend extensions X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=967b9dbac09b7b35650a876104db1178ed54f3c0;p=openwrt%2Fsvn-archive%2Fpackages.git php5: prepare pecl macros to distinguish between normal and zend extensions Signed-off-by: Michael Heimpold SVN-Revision: 40389 --- diff --git a/lang/php5/pecl.mk b/lang/php5/pecl.mk index 6bf1928f5..e1b981963 100644 --- a/lang/php5/pecl.mk +++ b/lang/php5/pecl.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2011 OpenWrt.org +# Copyright (C) 2011-2014 OpenWrt.org # # This is free software, licensed under the GNU General Public License v2. # See /LICENSE for more information. @@ -37,7 +37,11 @@ define PECLPackage $(INSTALL_DIR) $$(1)/usr/lib/php $(INSTALL_BIN) $(PKG_BUILD_DIR)/modules/$(subst -,_,$(1)).so $$(1)/usr/lib/php/ $(INSTALL_DIR) $$(1)/etc/php5 + ifeq ($(4),zend) + echo "zend_extension=/usr/lib/php/$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini + else echo "extension=$(subst -,_,$(1)).so" > $$(1)/etc/php5/$(subst -,_,$(1)).ini + endif endef endef